package com.matrix.admin.open.test.controller;

import com.matrix.admin.open.test.service.IElasticSearchTestService;
import com.matrix.common.vo.basic.response.BaseResponse;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ElasticSearch 测试用接口
 *
 * @author liuweizhong
 * @since 2025-09-17 11:28
 */
@Tag(name = "ES开放测试接口", description = "ES开放测试接口")
@RestController
@RequestMapping("/open/es")
public class ElasticSearchTestController {
    @Resource
    private IElasticSearchTestService elasticSearchTestService;


    @GetMapping("/test")
    @Operation(summary = "测试", description = "测试")
    public BaseResponse<String> get() {
        return BaseResponse.success(elasticSearchTestService.test());
    }

}
